package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/7/22 0022
 **/
@Data
@ApiModel("组织架构人员实体")
public class OrganizeVo {
    @ApiModelProperty(value = "组织ID，新增不必传，修改必传", example = "")
    private Long id;

    @ApiModelProperty(value = "上级组织ID，独立组织为则为0", required = true, example = "0")
    private Long parentId;

    @NotBlank(message = "组织名称不能为空")
    @Length(max = 100, message = "组织名称字符长度限制在100个以内")
    @ApiModelProperty(value = "组织名称", required = true)
    private String name;

    @ApiModelProperty(value = "负责人ID", required = true)
    private Long manegerEmpId;

}
